<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css"/>
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/custom.css" />
    <link rel="stylesheet" href="../../../lib/select2-4.0.3/dist/css/select2.min.css">
    <title>临采商品管理</title>
    <style>
        .select2-container{
            width: 100% !important;
            float: left;
            text-align: left;
        }
    </style>
</head>
<body data-id="531">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>商品管理<span
        class="c-gray en">&gt;</span> 临采商品管理 <a class="btn btn-success radius r"
                                                style="line-height:1.6em;margin-top:3px"
                                                href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-member" method="post">
        <div class="bg-1 bk-gray pb-10">
            <div class="lh-30 mb-10 clearfix  mt-10">
                <table class="table_li mb-10 table">
                    <thead class="text-l">

                    <!--<tr id="selectPlatformId0">
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <div class="replaceorder_lable w4" style="width:99px;margin-left: -58px">&lt;!&ndash;<span style="color: red">* </span>&ndash;&gt;选择渠道商：</div>
                                <span class="size-M f-l select_ph" style="display: inline-block;width:175px ">
                    <select id="ascription_lsit" class="select radius f-l ml-10" name="brandclass" size="1" style="width:120%; height: 30px;">
                    <script id="ascription_bob" type="text/x-dot-template">
                        <option value="" selected>请选择</option>
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0; i< it.length; i++) { }}
                        <option value="{{=it[i].customerCode}}">{{=it[i].customerName}}</option>
                        {{ } }}
                        {{ }else{ }}
                        <option>没有数据</option>
                        {{ } }}
                    </script>
                </select>
                </span>
                            </div>
                        </td>

                    </tr>-->

                    <tr id="selectPlatformId">
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <div class="replaceorder_lable w4" style="width:99px;margin-left: -58px">选择渠道商：</div>
                                <div class="formControls col-sm-8">
                    <select id="ascription_lsit" class="select radius f-l ml-10" name="brandclass" size="1">
                    <script id="ascription_bob" type="text/x-dot-template">
                        <option value="" selected>请选择</option>
                        {{if( it && it.length>0 ){ }}
                        {{ for(var i=0; i< it.length; i++) { }}
                        <option value="{{=it[i].customerId}}">{{=it[i].customerName}}</option>
                        {{ } }}
                        {{ }else{ }}
                        <option>没有数据</option>
                        {{ } }}
                    </script>
                </select>
                </div>
                            </div>
                        </td>

                        <td class="col-4-1">
                            <!--平台商品-->
                            <div class="row ml-10" id="platformSkuCode">
                                <label class="form-label f-l text-r w-55">Code码：</label>
                                <div class="formControls col-sm-8">
                                    <input type="text" class="input-text radius"  name="skuCode" id="skuCode" placeholder="输入Code码查找" ignore="ignore">
                                </div>
                                <span class="Validform_checktip"></span>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <!--平台商品-->
                            <div class="row ml-10" id="platformProductName">
                                <label class="form-label f-l text-r w-75">商品名称：</label>
                                <div class="formControls col-sm-8">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="productName">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <!--平台商品-->
                            <div class="row ml-10" id="platformSpecificationsName">
                                <label class="form-label f-l text-r w-75">规格名称：</label>
                                <div class="formControls col-sm-8">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="specificationsName">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l w-60 text-r">品牌：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="brand">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-55">供应商：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="supplier">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-75">询价客户：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="inquiryCustomer">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-75">创建公司：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="createCompany">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l w-60 text-r">创建部门：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="createDepartment">
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-55">创建人：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input type="text" class="input-text radius" placeholder="输入关键字查找" id="createBy">
                                </div>
                            </div>
                        </td>
                        <td colspan="2" class="col-4-2">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-75">创建时间：</label>
                                <div class="f-l">
                                    <input onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'timemax\')||\'%y-%M-%d\'}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd'})" class="input-text Wdate radius" id="timemin" type="text" placeholder="起始时间" style="width:116px;" >
                                    ~
                                    <input onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'timemin\')}',dateFmt:'yyyy-MM-dd'})" class="input-text Wdate radius" id="timemax" type="text" placeholder="结束时间" style="width:116px;" >
                                </div>
                            </div>
                        </td>

                    </tr>
                    <tr id="selectPlatformId1">
                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l w-60 text-r">对接状态：</label>
                                <select class="select radius f-l ml-10" style="width:60%; height: 30px;" id="selectVal1">
                                    <option selected value="0">请选择</option>
                                    <option value="1">成功</option>
                                    <option value="2">失败</option>
                                    <option value="3">移除</option>
                                </select>
                            </div>
                        </td>

                        <td class="col-4-1">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r w-15">对接时间：</label>
                                <div class="formControls col-sm-8 pos-r">
                                    <input onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'timemax\')||\'%y-%M-%d\'}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd'})" class="input-text radius" id="duijietime" type="text" placeholder="对接时间" >
                                </div>
                            </div>
                        </td>
                        <td class="col-4-1" id="checkStatus">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r">渠道审核状态：</label>
                                <span class="select-box size-M radius col-sm-8 ml-10" style="width: 60%">
                                        <select class="select"  id="channelCheckStatus" size="1" >
                                             <option value="0" selected>全部</option>
                                             <option value="10">待审核</option>
                                             <option value="20">审核通过</option>
                                             <option value="30">审核驳回</option>
                                        </select>
                                    </span>
                            </div>
                        </td>
                        <td class="col-4-1" id="shelvesStatus">
                            <div class="row ml-10">
                                <label class="form-label f-l text-r">渠道上架状态：</label>
                                <span class="select-box size-M radius col-sm-8 ml-10" style="width: 60%">
                                        <select class="select"  id="channelShelvesStatus" size="1" >
                                             <option value="0" selected>全部</option>
                                             <option value="10">上架</option>
                                             <option value="20">下架</option>
                                        </select>
                                    </span>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>
            </div>

            <div class="text-c pt-10 pb-20">
                <input type="button" class="btn btn-secondary radius size-S powerButton 609" value="导出商品" onclick="exportInquirySkuExcel()" style="float: left;margin-left: 15px;">
                <input type="submit" type="button" class="btn btn-secondary radius size-S powerButton 609" value="查&nbsp;&nbsp;询">
                <input name="" type="reset" class="btn radius size-S ml-10 powerButton 609" value="重&nbsp;&nbsp;置">
            </div>
            <!-- 表格渲染 -->
            <table class="table table-border table-bg table-hover table-sort mt-10" id="shanDataTable">
                <thead>
                <tr class="text-c">
                    <th class="w-120">Code信息</th>
                    <th class="w-80">品牌</th>
                    <th class="w-60">单位</th>
                    <th class="w-100">供应商</th>
                    <th class="w-100">询价客户</th>
                    <th class="w-100">价格信息</th>
                    <th class="w-100">创建时间</th>
                    <th class="w-80">对接状态</th>
                    <th class="w-100">对接时间</th>
                    <th class="w-100">审核状态</th>
                    <th class="w-100">上架状态</th>
                    <th class="w-120">操作</th>
                </tr>
                </thead>
                <tbody class="shun">
                </tbody>
            </table>
            <div class="mt-40"></div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/dockingplatform/goods/procureGoodsManage.js?rev=@@hash"></script>
<script src="../../../ht-js/timeFormat.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/select2-4.0.3/dist/js/select2.full.min.js"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $('#ascription_lsit').select2({});
    });
    /*
    * 页面加载完成,默认平台商品隐藏
    */
    $(function () {
        var defaultSelectVal = $("#selectVal").val();
        if (defaultSelectVal == '平台商品') {
            $("#groupCode").hide();
            $("#groupOldProducrName").hide();
            $("#groupOldSpecificationsName").hide();
        }

        $("#selectVal").change(function () {
            if ($("#selectVal").val() == '平台商品') {
                /*清空隐藏集团商品*/
                $("#code").val('');
                $("#oldProducrName").val('');
                $("#oldSpecificationsName").val('');
                $("#groupCode").hide();
                $("#groupOldProducrName").hide();
                $("#groupOldSpecificationsName").hide();
                /*显示平台商品*/
                $("#platformSkuCode").show();
                $("#platformProductName").show();
                $("#platformSpecificationsName").show();
            }
            if ($("#selectVal").val() == '集团商品') {
                /*清空隐藏平台商品*/
                $("#skuCode").val('');
                $("#productName").val();
                $("#specificationName").val('');
                $("#platformSkuCode").hide();
                $("#platformProductName").hide();
                $("#platformSpecificationsName").hide();
                /*显示集团商品*/
                $("#groupCode").show();
                $("#groupOldProducrName").show();
                $("#groupOldSpecificationsName").show();
            }
        });
    });

    $(function(){
        $("#form-member").Validform({
            tiptype:2,
            callback:function(form){
                getTemporaryGoodsList()
                return false;
            }
        });
    })

</script>
</body>
</html>